<%-- 
    Document   : testJsp
    Created on : Oct 27, 2012, 3:46:50 PM
    Author     : Hien-0912141
--%>

<%@page import="DAO.ProductDAO"%>
<%@page import="java.util.List"%>
<%@page import="POJO.Product"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
        <% List<Product> listProduct = ProductDAO.getListProduct();  
           for (int i = 0; i < listProduct.size(); i++) {
               Product p = listProduct.get(i);
        %>
        <p><%=p.getProductname()%></p>
       <%}%>
    </body>
</html>
